Optimal. Leaf size=143 \[ \frac{(3 A+2 C) \sin (c+d x) \sqrt{\cos (c+d x)}}{3 d \sqrt{b \cos (c+d x)}}+\frac{B x \sqrt{\cos (c+d x)}}{2 \sqrt{b \cos (c+d x)}}+\frac{B \sin (c+d x) \cos ^{\frac{3}{2}}(c+d x)}{2 d \sqrt{b \cos (c+d x)}}+\frac{C \sin (c+d x) \cos ^{\frac{5}{2}}(c+d x)}{3 d \sqrt{b \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.062233, antiderivative size = 143, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 43, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.07, Rules used = {17, 3023, 2734} \[ \frac{(3 A+2 C) \sin (c+d x) \sqrt{\cos (c+d x)}}{3 d \sqrt{b \cos (c+d x)}}+\frac{B x \sqrt{\cos (c+d x)}}{2 \sqrt{b \cos (c+d x)}}+\frac{B \sin (c+d x) \cos ^{\frac{3}{2}}(c+d x)}{2 d \sqrt{b \cos (c+d x)}}+\frac{C \sin (c+d x) \cos ^{\frac{5}{2}}(c+d x)}{3 d \sqrt{b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 17
Rule 3023
Rule 2734
Rubi steps
\begin{align*} \int \frac{\cos ^{\frac{3}{2}}(c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt{b \cos (c+d x)}} \, dx &=\frac{\sqrt{\cos (c+d x)} \int \cos (c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx}{\sqrt{b \cos (c+d x)}}\\ &=\frac{C \cos ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{3 d \sqrt{b \cos (c+d x)}}+\frac{\sqrt{\cos (c+d x)} \int \cos (c+d x) (3 A+2 C+3 B \cos (c+d x)) \, dx}{3 \sqrt{b \cos (c+d x)}}\\ &=\frac{B x \sqrt{\cos (c+d x)}}{2 \sqrt{b \cos (c+d x)}}+\frac{(3 A+2 C) \sqrt{\cos (c+d x)} \sin (c+d x)}{3 d \sqrt{b \cos (c+d x)}}+\frac{B \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt{b \cos (c+d x)}}+\frac{C \cos ^{\frac{5}{2}}(c+d x) \sin (c+d x)}{3 d \sqrt{b \cos (c+d x)}}\\ \end{align*}
Mathematica [A] time = 0.178772, size = 75, normalized size = 0.52 \[ \frac{\sqrt{\cos (c+d x)} (3 (4 A+3 C) \sin (c+d x)+3 B \sin (2 (c+d x))+6 B c+6 B d x+C \sin (3 (c+d x)))}{12 d \sqrt{b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.489, size = 83, normalized size = 0.6 \begin{align*}{\frac{2\,C\sin \left ( dx+c \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{2}+3\,B\sin \left ( dx+c \right ) \cos \left ( dx+c \right ) +6\,A\sin \left ( dx+c \right ) +3\,B \left ( dx+c \right ) +4\,\sin \left ( dx+c \right ) C}{6\,d}\sqrt{\cos \left ( dx+c \right ) }{\frac{1}{\sqrt{b\cos \left ( dx+c \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 2.24654, size = 108, normalized size = 0.76 \begin{align*} \frac{\frac{3 \,{\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} B}{\sqrt{b}} + \frac{C{\left (\sin \left (3 \, d x + 3 \, c\right ) + 9 \, \sin \left (\frac{1}{3} \, \arctan \left (\sin \left (3 \, d x + 3 \, c\right ), \cos \left (3 \, d x + 3 \, c\right )\right )\right )\right )}}{\sqrt{b}} + \frac{12 \, A \sin \left (d x + c\right )}{\sqrt{b}}}{12 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.22087, size = 662, normalized size = 4.63 \begin{align*} \left [-\frac{3 \, B \sqrt{-b} \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} + 2 \, \sqrt{b \cos \left (d x + c\right )} \sqrt{-b} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) - 2 \,{\left (2 \, C \cos \left (d x + c\right )^{2} + 3 \, B \cos \left (d x + c\right ) + 6 \, A + 4 \, C\right )} \sqrt{b \cos \left (d x + c\right )} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right )}{12 \, b d \cos \left (d x + c\right )}, \frac{3 \, B \sqrt{b} \arctan \left (\frac{\sqrt{b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt{b} \cos \left (d x + c\right )^{\frac{3}{2}}}\right ) \cos \left (d x + c\right ) +{\left (2 \, C \cos \left (d x + c\right )^{2} + 3 \, B \cos \left (d x + c\right ) + 6 \, A + 4 \, C\right )} \sqrt{b \cos \left (d x + c\right )} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right )}{6 \, b d \cos \left (d x + c\right )}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (C \cos \left (d x + c\right )^{2} + B \cos \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{\frac{3}{2}}}{\sqrt{b \cos \left (d x + c\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]